﻿using sx_windows.common;
using sx_windows.data.repository.source;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sx_windows.data.repository
{
    class AboutRepository : BaseRepository
    {
        private static AboutRepository INSTANCE;
        private AboutRemoteResource remoteResource;
        private AboutRepository() :base()
        {
            remoteResource = new AboutRemoteResource();
        }
        public static AboutRepository Instance()
        {
            if (INSTANCE == null)
            {
                INSTANCE = new AboutRepository();
            }
            return INSTANCE;
        }


        public void GetVersion(FetchCallback callback)
        {
            remoteResource.GetVersion(callback);
        }
    }
}
